package com.gs.wechatdemo.dialog;

import android.app.Activity;

import com.gs.wechatdemo.util.PhotoUtil;

public class CommDialogUtils {

    public static void showComboPicDialog(final Activity activity) {
        final ComboPicDialog comboPicDialog = new ComboPicDialog(activity);
        comboPicDialog.setClicklistener(new ComboPicDialog.OnClickListener() {
            @Override
            public void camera() {
                PhotoUtil.getInstance().toCamera(activity);
                comboPicDialog.dismiss();
            }

            @Override
            public void gallery() {
                PhotoUtil.getInstance().toGallery(activity);
                comboPicDialog.dismiss();
            }

            @Override
            public void cancel() {
                comboPicDialog.dismiss();
            }
        }).show();
    }
}
